package com.jwj.testback.backups.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * MySQL数据备份表
 * </p>
 *
 * @author JWJ
 * @since 2021-12-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MysqlBackups对象", description="MySQL数据备份表")
@TableName("mysql_backups")
public class MysqlBackups implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("mysql_ip")
    @ApiModelProperty(value = "数据库IP")
    private String mysqlIp;

    @TableField("mysql_port")
    @ApiModelProperty(value = "数据库端口")
    private String mysqlPort;

    @TableField("mysql_cmd")
    @ApiModelProperty(value = "备份命令")
    private String mysqlCmd;

    @TableField("mysql_back_cmd")
    @ApiModelProperty(value = "恢复命令")
    private String mysqlBackCmd;

    @TableField("database_name")
    @ApiModelProperty(value = "数据库名称")
    private String databaseName;

    @TableField("backups_path")
    @ApiModelProperty(value = "备份数据地址")
    private String backupsPath;

    @TableField("backups_name")
    @ApiModelProperty(value = "备份文件名称")
    private String backupsName;

    @TableField("operation")
    @ApiModelProperty(value = "操作次数")
    private Integer operation;

    @TableField("status")
    @ApiModelProperty(value = "数据状态（1正常，-1删除）")
    private Integer status;

    @TableField("recovery_time")
    @ApiModelProperty(value = "恢复时间")
    private Date recoveryTime;

    @TableField("create_time")
    @ApiModelProperty(value = "备份时间")
    private Date createTime;


}
